package com.atguigu.statistics.task;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class ScheduledTask {
    //@Scheduled(cron = "0/1 * * * * ? ")
    public void task1(){
        System.out.println("当前时间为："+new Date());
    }
}
